home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
T-COMAL Today
/
(k)t4.d64
/
logical'ops.func
< prev
next >
Wrap
Text File
|
2007-02-28
|
836b
|
35 lines
9000 // DELETE "0:LOGICAL'OPS.FUNC"
9010 // BY ├APTAIN ├OMAL AND FRIENDS
9020 // LIST "0:LOGICAL'OPS.FUNC"
9030 // UPDATED VERSION
9040 FUNC LOGICAL'SET'UP(NUM,MASK,OP) CLOSED
9050 //>>>>> WORKS WITH DISK'GET <<<<<
9060 // SET UP MACHINE CODE TO RESIDE
9070 // BETWEEN THE SCREEN AND THE
9080 // SPRITE POINTERS.
9090 //
9100 POKE 2045,169
9110 POKE 2046,NUM
9120 POKE 2047,OP
9130 POKE 2048,MASK
9140 POKE 2049,141
9150 POKE 2050,232
9160 POKE 2051,7
9170 POKE 2052,96
9180 SYS 2045
9190 RETURN PEEK(2024)
9200 ENDFUNC LOGICAL'SET'UP
9210 //
9220 FUNC LAND(NUM,MASK) CLOSED
9230 RETURN LOGICAL'SET'UP(NUM,MASK,41)
9240 ENDFUNC LAND
9250 //
9260 FUNC LOR(NUM,MASK) CLOSED
9270 RETURN LOGICAL'SET'UP(NUM,MASK,9)
9280 ENDFUNC LOR
9290 //
9300 FUNC XOR(NUM,MASK) CLOSED
9310 RETURN LOGICAL'SET'UP(NUM,MASK,73)
9320 ENDFUNC XOR
9330 //